package cn.jsprun.struts.foreg.form;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
@SuppressWarnings("serial")
public class FileAttaUploadForm extends ActionForm{
	private Map uploadFileMap=new HashMap();
	@SuppressWarnings("unchecked")
	public void setUploadFile(int index, FormFile file)
	{
	      uploadFileMap.put(new Integer(index), file);
	 }
	public FormFile getUploadFile(int index)
    {
        return (FormFile) uploadFileMap.get(new Integer(index));
    }
	private List attachfile; 
	private FormFile tradeattach;
	public FormFile getTradeattach() {
		return tradeattach;
	}
	public void setTradeattach(FormFile tradeattach) {
		this.tradeattach = tradeattach;
	}
	public ActionErrors validate(ActionMapping mapping,HttpServletRequest request) {
		return null;
	}
	public void reset(ActionMapping mapping, HttpServletRequest request) {
	}
	public List getAttachfile() {
		return attachfile;
	}
	public void setAttachfile(List attachfile) {
		this.attachfile = attachfile;
	}
}
